#!/bin/bash

# Examples of using codebase-rag-mcp shell commands from bash scripts

echo "🔍 Codebase RAG MCP - Bash Usage Examples"

# Change to the directory containing the CLI
cd "$(dirname "$0")/.."

echo ""
echo "1. Verify configuration:"
./codebase-rag verify

echo ""
echo "2. Check status:"
./codebase-rag status

echo ""
echo "3. Index current directory:"
./codebase-rag index .

echo ""
echo "4. Search for shell command functionality:"
./codebase-rag search "shell command parsing"

echo ""
echo "5. Search with options:"
./codebase-rag search --max-results 3 --min-score 0.8 "parseShellCommand"

echo ""
echo "6. Check status after indexing:"
./codebase-rag status

echo ""
echo "✅ Bash usage examples completed!"